package com.sunny.common.redisson.config;

import com.sunny.common.redisson.constant.RedissonConstant;
import lombok.Data;
import org.redisson.api.RedissonClient;

import java.util.Map;

/**
 * @author sunny
 * @since 2020-7-14 4:14 PM
 */
@Data
public class MultipleRedissonClient {

    private Map<String, RedissonClient> clientMap;

    public RedissonClient getDefault() {
        return clientMap.get(RedissonConstant.REDIS_DEFAULT_NAME);
    }

}
